/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.foxline.manager;

import br.com.foxline.model.Reserve;
import br.com.foxline.service.ReserveService;
import br.com.foxline.service.UserService;
import java.io.Serializable;
import java.util.List;
import javax.ejb.EJB;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

/**
 *
 * @author luciano
 */
@ManagedBean
@ViewScoped
public class ManagerIndexReserve implements Serializable{
    
    @EJB
    private ReserveService reserveService;
    
    @EJB
    private UserService userService;
    
    public List<Reserve> myReserves(){
        return reserveService.getMyReserve(userService.getCurrentUserFull());
    }
    
    
}
